package com.joolun.cloud.pay.common.feign;

import com.joolun.cloud.common.core.constant.SecurityConstants;
import com.joolun.cloud.common.core.constant.ServiceNameConstants;
import com.joolun.cloud.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @author
 */
@FeignClient(contextId = "feignShopInfoService", value = ServiceNameConstants.MALL_ADMIN_SERVICE)
public interface FeignShopInfoService {

	/**
	 * 更新店铺AliAuthToken
	 * @param id
	 * @return
	 */
	@PutMapping("/shopinfo/aliauthtoken/{id}/{aliAuthToken}")
	Boolean updateAliAuthTokenInside(@PathVariable("id") String id, @PathVariable("aliAuthToken") String aliAuthToken, @RequestHeader(SecurityConstants.FROM) String from);

	/**
	 * 更新店铺wxMchId
	 * @param id
	 * @return
	 */
	@PutMapping("/shopinfo/wxmchid/{id}/{wxMchId}")
	Boolean updateWxMchIdInside(@PathVariable("id") String id, @PathVariable("wxMchId") String wxMchId, @RequestHeader(SecurityConstants.FROM) String from);

}
